package com.linko.intelligent.sys.core;

import com.linko.intelligent.common.config.StringRedisOperator;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableDiscoveryClient
@EnableHystrix
@EnableFeignClients(basePackages = "com.linko.intelligent.*")
@MapperScan({"com.linko.intelligent.sys.core.mapper"})
@ComponentScan("com.linko.intelligent")
@EnableScheduling
@EnableAsync
@Slf4j
public class SysApplication implements CommandLineRunner {
    @Autowired
    StringRedisOperator redisOperator;

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SysApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {

    }

}
